package org.jeecg.modules.friends.store.entity;

import cn.org.atool.fluent.mybatis.annotation.FluentMybatis;
import cn.org.atool.fluent.mybatis.annotation.TableField;
import cn.org.atool.fluent.mybatis.annotation.TableId;
import cn.org.atool.fluent.mybatis.base.RichEntity;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * UserAccessEntity: 数据映射实体定义
 *
 * @author Powered By Fluent Mybatis
 */
@SuppressWarnings({"rawtypes", "unchecked"})
@Data
@Accessors(
    chain = true
)
@EqualsAndHashCode(
    callSuper = false
)
@FluentMybatis(
    table = "user_access",
    schema = "make_friends"
)
public class UserAccessEntity extends RichEntity {
  private static final long serialVersionUID = 1L;

  /**
   */
  @TableId("id")
  private Long id;

  /**
   */
  @TableField(
      value = "add_time",
      insert = "now()"
  )
  private Date addTime;

  /**
   */
  @TableField(
      value = "update_time",
      insert = "now()",
      update = "now()"
  )
  private Date updateTime;

  /**
   * 次数
   */
  @TableField("lately_count")
  private Long latelyCount;

  /**
   */
  @TableField("lately_time")
  private Date latelyTime;

  /**
   * 访问目标
   */
  @TableField("target_name")
  private String targetName;

  /**
   * 总次数
   */
  @TableField("total_count")
  private Long totalCount;

  /**
   * 用户ID
   */
  @TableField("user_id")
  private Long userId;

  @Override
  public final Class entityClass() {
    return UserAccessEntity.class;
  }
}
